hvm: Do not mess with APIC timer deadline if in one-shot mode.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 28 Oct 2008 10:36:22 +0000 (10:36 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 28 Oct 2008 10:36:22 +0000 (10:36 +0000)
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/hvm/vpt.c

index d9730bf14065666831021e237c0588a4a3d3f5cb..5dae7cd50593fc52f3063a2ca2b7a2e2862adf2d 100644 (file)
@@ -389,7 +389,7 @@ void create_periodic_time(
      * LAPIC ticks for process accounting can see long sequences of process
      * ticks incorrectly accounted to interrupt processing.
      */
-    if ( pt->source == PTSRC_lapic )
+    if ( !pt->one_shot && (pt->source == PTSRC_lapic) )
         pt->scheduled += delta >> 1;
     pt->cb = cb;
     pt->priv = data;